import React from 'react'
import ReactDOM from 'react-dom'
// 先导入 antd 样式文件
import 'antd/dist/antd.css'
// 再导入全局样式文件，防止样式覆盖！
import './index.css'
import App from './App'
import { Provider } from 'react-redux'
import store from '@/store'
// 引入国际化配置
import { ConfigProvider } from 'antd'
// 在需要用到的 组件文件中引入中文语言包
import zhCN from 'antd/lib/locale/zh_CN'

ReactDOM.render(
  <Provider store={store}>
    <ConfigProvider locale={zhCN}>
      <App />
    </ConfigProvider>
  </Provider>,
  document.getElementById('root')
)

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
